<template>
  <!--全屏展示-->
  <div v-if="$route.meta.useframe != undefined && $route.meta.useframe == true">
    <!--路由的出口 函数-->
    <RouterView></RouterView>
  </div>
  <div v-if="$route.meta.useframe == undefined || $route.meta.useframe == false">
    <el-container>
      <el-header>
        <el-row>
          <el-col :span="4">
            <img src="./assets/logo.jpg" alt="" width="200" height="46">
          </el-col>
          <el-col :span="16">

            <div style="text-align: center; line-height: 46px; font-size: 20px;">
              智能M站服务平台管理系统
            </div>
          </el-col>
          <el-col :span="4">
            <el-dropdown>
              <span class="el-dropdown-link">
                美杜莎
                <el-icon class="el-icon--right">
                  <arrow-down />
                </el-icon>
              </span>
              <template #dropdown>
                <el-dropdown-menu>
                  <el-dropdown-item>个人中心</el-dropdown-item>
                  <el-dropdown-item>账户与安全</el-dropdown-item>
                  <el-dropdown-item>蛇人族部落</el-dropdown-item>
                  <el-dropdown-item>关于部落</el-dropdown-item>
                  <el-dropdown-item divided>登出</el-dropdown-item>
                </el-dropdown-menu>
              </template>
            </el-dropdown>
          </el-col>
        </el-row>


      </el-header>
      <el-container>
        <el-aside width="200px">
          <Menus></Menus>
        </el-aside>

        <el-main>
          <!--路由的出口 函数-->
          <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>

  </div>


</template>
<script setup>
import Menus from './components/Menus.vue'




</script>

<style scoped>
.el-header{
  height: 46px;
  background-color: #78d3fa;
  padding-left: 0px;
}
.el-aside{
  background-color: #0874a3;
  height: calc(100vh - 46px);
}
.el-dropdown{
  float: right;

  line-height: 46px;
}
</style>